<%@ page language="java" import="com.ccc.model.User,com.ccc.model.Area" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<% User user = (User)session.getAttribute("user"); 
   Integer currentTime = (Integer)application.getAttribute("currentTime"+user.getArea().getAreaId());
%>
<head>
<title>3CProduct供应链虚拟平台</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script type="text/javascript" src="../javascript/zDialog/zDialog.js"></script>
<script type="text/javascript" src="../javascript/zDialog/zDrag.js"></script>
<script type="text/javascript" src="../javascript/winhead.js?id=0"></script>
<script type="text/javascript" src="../javascript/x_open.js?id=0" charset="GBK"></script>
<link rel="shortcut icon" href="../tomcat.ico" type="image/x-icon" />	
<script type="text/javascript">
	function open1(){
		var diag = new Dialog();
		diag.Width = 400;
		diag.Height = 250;
		diag.Title = "申请贷款";
		diag.URL = "loanAction!inputLoan?error=3";
		diag.OKEvent = function(){
			var subValue = diag.innerFrame.contentWindow.document.getElementById('currentloan').value;
			Dialog.alert(subValue);
			diag.close();
		};//点击确定后调用的方法 
		diag.show();
	}

function bzjsConfirm(){
	if(confirm('是否结束本周并且扣除费用（如库存成本等）?')) { 
	    document.location.href="userAction!currentEnd";
	  } 
	  return false; 
	} 
	
function bzksConfirm(){
	if(confirm('是否开始本周并且扣除费用（如还到期贷款、贷款利息、厂房和生产线租金，所得税等）?')) { 
	    document.location.href="userAction!currentStart";
	  } 
	  return false; 
	} 

</script>
<link href="../css/label.css" rel="stylesheet" type="text/css">
<link href="../css/font.css" rel="stylesheet" type="text/css">
<link href="../css/mlayers.css" rel="stylesheet" type="text/css">
</head>
<body scroll="no" style="border:none;" ondragstart="return false" onSelectStart="return false" onResize="return false" >
<!-- <object  id="max"  type="application/x-oleobject"  classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">     <param   name="Command"   value="Maximize"> -->
<!-- </object>  -->
<script type="text/javascript" src="../javascript/winbody.js"></script>
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC">
  <tr>
    <td colspan="3" height="90"><img src="../images/index_top_bg.png" width="100%" height="90" /></td>
  </tr>
  <tr>
    <td colspan="3" valign="top" height="40"><img src="../images/top_line.png" width="100%" height="40"></td>
  </tr>
  <tr>
    <td valign="top" width="300"><img src="../images/left_bg2.png" width="300" height="578"></td>
    <td valign="top" bgcolor="#EEEEEE">
    <table width="700" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
    </td>
    <td width="400" valign="top"  bgcolor="#EEEEEE">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td style="cursor:hand"><img src="../images/icon06.gif" width="72" height="72" style="cursor:hand;"onClick="x_open('查看厂房信息','manufactureraction!selectBill?&my=3',700,400)">
        </td>
        <td>&nbsp;</td>
        <td style="cursor:hand">
        <img src="../images/icon10.png" width="72" height="72" style="cursor:hand;" onClick="x_open('查看历史生产线信息','manufactureraction!selectBill?&my=3',700,400)"></td>
        <td>&nbsp;</td>
        <td style="cursor:hand">
        <img src="../images/icon11.png" width="72" height="72" style="cursor:hand;" onClick="x_open('查看历史生产信息','manufactureraction!selectBill?&my=3',700,400)"></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td align="center" class="right01">厂房信息</td>
        <td>&nbsp;</td>
        <td align="center" class="right01">生产线信息</td>
        <td>&nbsp;</td>
        <td align="center" class="right01">生产信息</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="19">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td style="cursor:hand"><img src="../images/icon07.gif" width="72" height="72" style="cursor:hand;" onClick="x_open('查看历史销售信息','billaction!selectBill?&error=3',800,500)"></td>
        <td>&nbsp;</td>
        <td style="cursor:hand"><img src="../images/icon02.gif" alt="" width="72" height="72" style="cursor:hand;" onClick="x_open('查看每周库存信息','inventoryaction!findall',800,500)"></td>
        <td>&nbsp;</td>
        <td style="cursor:hand"><img src="../images/icon04.gif" width="72" height="72" style="cursor:hand;" onClick="x_open('查看同组信息','commonGroup?userid=1&error=3',600,300)"></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td align="center" class="right01">销售信息</td>
        <td>&nbsp;</td>
        <td align="center" class="right01">库存信息</td>
        <td>&nbsp;</td>
        <td align="center" class="right01">同组信息</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="19">&nbsp;</td>
        <td>&nbsp;</td>
        <td align="center" class="right01">&nbsp;</td>
        <td>&nbsp;</td>
        <td align="center" class="right01">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td style="cursor:hand"><img src="../images/icon05.gif" alt="" width="72" height="72" style="cursor:hand;" onClick="createwin('查看本周利润表','profitaction?error=3',5,heighs/2-250/2,widths/2-450/2,500,350,0,0,0)"></td>
        <td>&nbsp;</td>
        <td style="cursor:hand"><img src="../images/icon08.gif" alt="" width="72" height="72" style="cursor:hand;"  onClick="createwin('查看资产负债表','equityaction?error=3',8,heighs/2-250/2,widths/2-550/2,600,300,0,0,0)"></td>
        <td>&nbsp;</td>
      </tr>
	     <tr>
        <td>&nbsp;</td>
        <td align="center" class="right01">&nbsp;</td>
        <td>&nbsp;</td>
        <td align="center" class="right01">利润表</td>
        <td>&nbsp;</td>
        <td align="center" class="right01">资产负债表</td>
        <td>&nbsp;</td>
      </tr>
	     <tr>
        <td height="19">&nbsp;</td>
        <td>&nbsp;</td>
        <td align="center" class="right01">&nbsp;</td>
        <td>&nbsp;</td>
        <td align="center" class="right01">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
	    <tr>
        <td>&nbsp;</td>
       <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td style="cursor:hand"><img src="../images/icon03.gif" width="72" height="72" style="cursor:hand;" onClick="createwin('查看消费者市场需求情况','demand!demandSet',3,heighs/2-450/2,widths/2-750/2,800,500,0,0,0)"></td>
        <td>&nbsp;</td>
        <td style="cursor:hand">
            <img src="../images/icon09.gif" style="cursor:hand;" width="72" height="72"  onClick="x_open('规则说明', 'ruleaction!ruleinfo',800,600);"/></td>
        <td>&nbsp;</td>
      </tr>
	
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td align="center" class="right01">市场预测</td>
        <td>&nbsp;</td>
        <td align="center" class="right01">规则说明</td>
        <td>&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
</table>
<div id="top01"><img src="../images/logo_top.png" width="223" height="108"></div>
<div id="top02"><img src="../images/title_top.png" width="284" height="47"></div>
<div id="left01"><img src="../images/left_01m.png" width="88" height="88"></div>
<div id="left02"><img src="../images/left_020.png" width="176" height="53"></div>
<div id="left03"><img src="../images/left_030.png" width="290" height="42" border="0" usemap="#Map">
  <map name="Map">
    <area shape="rect" coords="90,14,211,48" href="../logout.jsp">
  </map>
</div>
<div id="left04" class="left01">
<div align="center"><s:property value="%{#session.user.userName}"/></div></div>
<div id="left08" class="left01">
<div align="center"><s:property value="%{#session.user.userId}"/></div></div>
<div id="left05" class="left01">
<div align="center"><s:property value="%{#session.user.role.roleName}"/></div></div>
<div id="left06" class="left01">
<div align="center"><strong style=" font-size:20px;color:#FF0000"><s:property value="#session.cash" /></strong>&nbsp;元</div></div>
<div id="left07" class="left01">
<div align="center">第&nbsp;&nbsp;<strong style=" font-size:14px;color:#FF0000"><%=currentTime %></strong>&nbsp;&nbsp;周</div></div>
<div id="left09" class="left01">
<div align="center"><s:property value="%{#session.user.area.areaName}"/></div></div>
<div id="main01" class="left01"><img src="../images/main_bg.png" width="298" height="385"></div>
<div id="main00" class="left01"><img src="../images/00_2.gif" width="80" height="80"></div>

<div id="main02" class="left01">
  <s:if test="1" >
    <img src="../images/01_1.png" width="85" height="85" style="cursor:hand;" onClick="createwin('申请贷款','loanAction!inputLoan?error=3',11,heighs/2-250/2,widths/2-400/2,400,250,0,0,0)">
  </s:if>
    <s:else><img src="../images/01_0.png" width="85" height="85"/></s:else> 
</div>

<div id="main03" class="left01">
  <s:if test="1">
	<img src="../images/09_1.png" width="85" height="85" style="cursor:hand;" onClick="createwin('仓库租买','storageAction?error=3',12,heighs/2-250/2,widths/2-550/2,550,320,0,0,0)"></s:if>
    <s:else><img src="../images/09_0.PNG" width="85" height="85"></s:else>
</div>

<div id="main04" class="left01">
  <s:if test="1">
	<img src="../images/11_1.png" width="85" height="85" style="cursor:hand;" onClick="createwin('生产线租买','lineAction?error=3',12,heighs/2-250/2,widths/2-550/2,550,320,0,0,0)"></s:if>
    <s:else><img src="../images/11_0.PNG" width="85" height="85"></s:else>
</div>

<div id="main05" class="left01">
  <s:if test="1">
	<img src="../images/03_1.png" width="85" height="85" style="cursor:hand;" onClick="createwin('商品入库','orderAction!waitForStorage',13,heighs/2-220/2,widths/2-480/2,500,250,0,0,0)"></s:if>
  <s:else><img src="../images/03_0.png" width="85" height="85"></s:else>
</div>

<div id="main06" class="left01">
  <s:if test="1">
<img src="../images/10_1.png" width="85" height="85" style="cursor:hand;" onClick="createwin('下一批生产','productAction!listUserLine?error=3',16,heighs/2-250/2,widths/2-550/2,630,250,0,0,0)"></s:if>
    <s:else><img src="../images/10_0.png" width="85" height="85"></s:else>
</div>

<div id="main07" class="left01">
  <s:if test="1">
	<img src="../images/04_1.png" width="85" height="85" style="cursor:hand;" onClick="createwin('商品出售','orderAction!getOrder?error=3',15,heighs/2-350/2,widths/2-650/2,750,450,0,0,0)">
  </s:if>
    <s:else><img src="../images/04_0.png" width="85" height="85"></s:else>
</div>

<div id="main08" class="left01" style="cursor:hand">
  <s:if test="1">
	<img src="../images/05_1.png" width="85" height="85" style="cursor:hand;" onClick="javascript:window.location.href='fundAction!UpdateReceivableAccounts?error=3'"></s:if>
    <s:else><img src="../images/05_0.png" width="85" height="85"></s:else>
</div>

<!-- <div id="main10" class="left01"> -->
<%--   <s:if test="1"> --%>
<%-- 	<img src="../images/07_1.png" width="85" height="85" style="cursor:hand;" onClick="bzjsConfirm()" ></s:if> --%>
<%--     <s:else><img src="../images/07_0.png" width="85" height="85"></s:else> --%>
<!-- </div> -->

<div id="main09" class="left01">
  <s:if test="0">
	<img src="../images/start.png" style="cursor:hand;" onClick="bzksConfirm()" ></s:if>
    <s:else><img src="../images/end.gif" style="cursor:hand;" onClick="bzjsConfirm()"/></s:else>
</div>

<div id="main10" class="left01">
   <s:if test="1">
       <img src="../images/11_1.gif" width="85" height="85" style="cursor:hand;" onClick="createwin('产品研发','researchAction!listResearch?error=3',15,heighs/2-350/2,widths/2-650/2,750,450,0,0,0)">
    </s:if>
    <s:else><img src="../images/11_0.gif"></s:else>
</div>

<div id="main11" class="left01">
   <s:if test="1">
       <img src="../images/12_1.gif" width="85" height="85" style="cursor:hand;" onClick="createwin('广告投放','adAction',15,heighs/2-350/2,widths/2-650/2,750,450,0,0,0)">
    </s:if>
    <s:else><img src="../images/12_0.gif"></s:else>
</div>
<div id="smenu" class='smenu'>
 <table cellpadding="0" cellspacing="0" border="0" style="padding-top:2px;" height="100%">
  <tr>
   <td><img src='../images/btn-left.gif' border='0' onClick="document.getElementById('minkang').scrollLeft-=170" style="cursor:hand"><img src='../images/btn-right.gif' border='0' onClick="document.getElementById('minkang').scrollLeft+=170" style="cursor:hand"></td>
   <td><div style="position:relative;width:expression(document.body.clientWidth-53);overflow-y:hidden;overflow-x:hidden;" id="minkang"><table cellpadding="0" cellspacing="0" border="0"><tr id="trs"><td></td></tr></table></div></td>
  </tr>
 </table>
</div>
</body>
</html>
